import request from '@/utils/request'

//审核出库单
export function reviewList(id) {
  return request({
    url: '/system/outboundList/reviewList',
    method: 'post',
    params: {"id":id}
  })
}

export function updateOrderGoods(data) {
  return request({
    url: '/system/outboundList/updateOrderGoods',
    method: 'put',
    data: data
  })
}

//查询出库单商品列表
export function getListGoods(id){
  return request({
    url: '/system/outboundList/listGoods',
    method: 'get',
    params: {"id":id}
  })
}

// 查询出库单列表
export function listList(query) {
  return request({
    url: '/system/outboundList/list',
    method: 'get',
    params: query
  })
}

// 查询出库单详细
export function getList(id) {
  return request({
    url: '/system/outboundList/' + id,
    method: 'get'
  })
}

// 新增出库单
export function addList(data) {
  return request({
    url: '/system/outboundList',
    method: 'post',
    data: data
  })
}

// 修改出库单
export function updateList(data) {
  return request({
    url: '/system/outboundList',
    method: 'put',
    data: data
  })
}

// 删除出库单
export function delList(id) {
  return request({
    url: '/system/outboundList/' + id,
    method: 'delete'
  })
}
